# from Tkinter import *
# import thread
# import time
#  
# master = Tk()
#  
# listbox = Listbox(master)
# listbox.pack()
#       
#       
# for item in ["", "two", "three", "four"]:
#     listbox.insert(END, item)
#   
# listbox.insert(END, "a list entry")
#  
# def get_active(listbox,id):
#     while True:
#         print type(listbox.get(ACTIVE))
#         time.sleep(3)
#     thread.exit_thread()
#      
# thread.start_new_thread(get_active, (listbox,1)) # create thread for receiving stdout from subprocess
#  
# print len("")
# 
#  
#  
# mainloop()
# next_line="$$LIST&&0&&1"
# parts=next_line.split('&&')
# length=len(parts)
# for i in range(1,length):
#     print parts[i]



print "$$END"+'\n'


